Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

News methods New format handling CSV NDJSON #235

Merged
merged 4 commits into from
Oct 11, 2021

Conversation

alallema
Copy link
Contributor

@alallema alallema commented Oct 11, 2021

  • Add new methods:
    • addDocumentsJson(string $documents, ?string $primaryKey = null)
    • addDocumentsNdJson(string $documents, ?string $primaryKey = null)
    • addDocumentsCsv(string $documents, ?string $primaryKey = null)
  • Add tests for new methods + files
  • Remove json header application/json for every http methods

@alallema alallema merged commit 817451f into bump-meilisearch-v0.23.0 Oct 11, 2021
@alallema alallema deleted the new-format branch October 11, 2021 17:07
bors bot added a commit that referenced this pull request Oct 12, 2021
214: Changes related to the next MeiliSearch release (v0.23.0) r=alallema a=meili-bot

Related to this issue: meilisearch/integration-guides#142

This PR:
- gathers the changes related to the next MeiliSearch release (v0.23.0) so that this package is ready when the official release is out.
- should pass the tests against the [latest pre-release of MeiliSearch](https://github.com/meilisearch/MeiliSearch/releases).
- might eventually contain test failures until the MeiliSearch v0.23.0 is out.

⚠️ This PR should NOT be merged until the next release of MeiliSearch (v0.23.0) is out.

_This PR is auto-generated for the [pre-release week](https://github.com/meilisearch/integration-guides/blob/master/guides/pre-release-week.md) purpose._

Done:
- #230 
- #235 
    - Add new methods:
        - `addDocumentsJson(string $documents, ?string $primaryKey = null)`
        - `addDocumentsNdJson(string $documents, ?string $primaryKey = null)`
        - `addDocumentsCsv(string $documents, ?string $primaryKey = null)`
    - Add tests for new methods + files
    - Remove json header `application/json` for every http methods

Co-authored-by: meili-bot <[email protected]>
Co-authored-by: Amélie <[email protected]>
Co-authored-by: alallema <[email protected]>
@@ -8,7 +8,7 @@ interface Http
{
public function get($path, array $query = []);

public function post(string $path, $body = null, array $query = []);
public function post(string $path, $body = null, array $query = [], string $content_type = null);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why $content_type and not $contentType if in codebase camelCase is used everywhere? :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch was merged into bump-meilisearch-v0.23.0 and not main. I requested this change in the PR corresponding to the merge of bump-meilisearch-v0.23.0 to main.
#214 (comment)

So good remark, we changed it! :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, missed that 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants